<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>管理员添加</title>
    <link rel="stylesheet" href="css/adminAdd.css">
    <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
	<script src="js/jquery1.42.min.js" type="text/javascript"></script>
	<script src="js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
	<script src="js/publicNav.js" type="text/javascript"></script>
	<script src="js/index.js" type="text/javascript"></script>
	<link href="css/base.css" rel="stylesheet" type="text/css" />
</head>
<body>

<!--jsp包涵文件  -->
<jsp:include page="header.jsp" />



<div class="content">
    <div class="content_left">
        <ul id="content_ul">
            <li><img src="${pageContext.request.contextPath}/download.do?filename=${shop2.shopimg}" alt=""></li>
            <li><img src="images/shangpinxiangqing/X8.png" alt=""></li>
            <li><img src="images/shangpinxiangqing/X7.png" alt=""></li>
            <li><img src="images/shangpinxiangqing/X9.png" alt=""></li>
            <li><img src="images/shangpinxiangqing/X14.png" alt=""></li>
        </ul>
        <div id="content_div">
            <span class="on"></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
        </div>
    </div>

    <form class="content_right"  action="${pageContext.request.contextPath}/showCart.do?usercode=${user.usercode}" method="post">
        <h2>
           商品名 ${shop2.shopname}
        </h2>
        <div class="content_right_1">
            <div class="content_div1">
                <span>售价:&nbsp;&nbsp;&nbsp;&nbsp;
                </span>￥<strong class="content_span" style="color: orangered"  id="price1">${shop2.price}</strong>
            </div>
           <div class="content_div2">
               <span>促销:&nbsp;&nbsp;&nbsp;&nbsp;
               </span><span class="content_span1" style="color: orangered">${shop2.produce} &nbsp; 店铺大促销，过了这个村就没这个店了哈</span>
           </div>
           <div class="content_div3">
               <span>商品详情:&nbsp;&nbsp;&nbsp;&nbsp;
               </span><span class="content_span2" style="color: orangered">${shop2.shopinfo}</span>
           </div>
            <div class="content_div4">
                <span>服务&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <span class="content_span3">
                30天无忧退货&nbsp; &nbsp;&nbsp;48小时快速退款&nbsp;&nbsp;&nbsp;满88元免邮
                </span>
            </div>
        </div>
        <div class="content_right_2">
            <span>数量&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <div>
                <div id="jianBtn">
                <img src="images/shangpinxiangqing/X15.png" alt="" >
                </div>
                <input type="text" class="content_input"  value="1"   id="num"  name="num"/>
                <div id="jiaBtn">
                <img src="images/shangpinxiangqing/16.png" alt="" >
                </div >
            </div>
            <span>${sucess}</span>
            <div>${error}</div>
           <div>${error1}</div>
            <div class="content_right_2">
            <span>小计&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <td class="cart_sum">
            	<label id="total1" class="tot" style="color:#ff5500;font-size:14px; font-weight:bold;">${price }</label>
            </td>
            </div>
        </div>

        <div class="content_right_3">
       
            <a  href="${pageContext.request.contextPath}/orders.do?num2=${num2}"  class="orders">立即购买</a>
            <button type="submit">加入购物车</button>
        </div>
    </form>
      
</div>

 <script>
	        $(".orders").click(function(){
	            $(".orders").attr("href","${pageContext.request.contextPath}/orders.do?num2="+$('.content_input').val());
	        })
</script>
<script src="js/adminAdd.js"></script>

</body>
</html>